
var nodeRef = "workspace://SpacesStore/"+args.id;
var node = search.findNode(nodeRef);
var lat = args.lat;
var lon = args.lon;
var name = args.name;

if (node == null || lat == null || lon == null) {
	status.code = 400;
	status.message = "Error";
	status.redirect = true;
} else {
	node.properties['caas:latitude'] = lat;
	node.properties['caas:longitude'] = lon;
	node.properties['caas:location'] = name;
	node.save();
	model.node = node;
}
